﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XProject.DataVisit.Model;
using NHibernate.Criterion;

namespace XProject.DataVisit.DAL.BaseManager
{
    public class DEquipment:AbstractSupportDal<Equipment>
    {
        public IList<Equipment> GetListByOKey(Guid id)
        {
            return Session.CreateCriteria<Equipment>()
                .Add(Expression.Eq("AreaID", id))
                .List<Equipment>();
        }
    }
}
